package com.lws.dubboapi.resources;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * Created by lvws on 2016/7/11 0011.
 */
@Path("restful")
public interface RestfulResource {

    @GET
    @Path("execute")
    @Consumes(MediaType.APPLICATION_JSON)
    void execute();

    @GET
    @Path("sayHello")
    @Consumes(MediaType.APPLICATION_JSON)
    @Produces(MediaType.APPLICATION_JSON)
    String sayHello(@QueryParam("name") String name);

}
